<?php
/**
 * Created by PhpStorm.
 * User: HeYongbiao
 * Date: 2016/11/30
 * Time: 21:32
 */
$_W['page']['title'] = '公众号管理';
if (empty($_W['isfounder'])) {
    message("只有管理员有这个权限");
}
$pindex = max(1, intval($_GPC['page']));
$psize = 15;
$start = ($pindex - 1) * $psize;
$condition = '';
$pars = array();
$list = pdo_fetchall("SELECT * FROM " . tablename("wechat_account"));
if (!empty($_W['setting']['platform']['authstate'])) {
    load()->classs('weixin.platform');
    $account_platform = new WeiXinPlatform();
    $authurl = $account_platform->getAuthLoginUrl();
}
//if(empty($list)){
//    template("account/post-step");
//} else {
//    header("location:".$_W["siteroot"]."web/index.php?c=home&a=welcome&do=platform");
//}
template('account/official-account');